/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sucresale.presentation;

import com.sucresale.entities.Salad;
import java.io.Serializable;
import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author User
 */
@ManagedBean(name = "SelectYourOrderManagedBean")
@SessionScoped
public class SelectYourOrderManagedBean implements Serializable {

    private ArrayList<Salad> ensaladasSugerencias = new ArrayList<Salad>();
    private String selectedSalad;
    

    public String getSelectedSalad() {
        return selectedSalad;
    }

    public void setSelectedSalad(String selectedSalad) {
        this.selectedSalad = selectedSalad;
    }


    public ArrayList<Salad> getensaladasSugerencias() {
        return ensaladasSugerencias;
    }

    public void setensaladasSugerencias(ArrayList<Salad> ensaladasSugerencias) {
        this.ensaladasSugerencias = ensaladasSugerencias;
    }

    public SelectYourOrderManagedBean() {
    }

    public ArrayList<Salad> fillSugerencias() {

        ensaladasSugerencias = new ArrayList<Salad>();

        for (int i = 0; i < 10; i++) {

            Salad salad1 = new Salad();
            salad1.setName("Ensalada al Pesto");
            salad1.setDescription("Ensalada Verde con Puerro hervido, Huevos y Espinaca");


            ensaladasSugerencias.add(salad1);

        }

        return ensaladasSugerencias;

    }

    public String goToSoloOrdering() {

        return "solo";

    }

    public String goToGroupOrdering() {

        return "group";

    }
}
